home *** CD-ROM | disk | FTP | other *** search
- //pixel shader to sample texture and environment map and mixes with material color
- //Luke Lenhart
- //(C)2004-2005 Digipen Institute of Technology
-
- sampler sampTex;
-
- sampler sampCube;
-
- struct PS_INPUT
- {
- float2 Tex0 : TEXCOORD0;
- float3 Tex1 : TEXCOORD1;
- float4 Clr : COLOR;
- //float FogClr : TEXCOORD2;
- };
-
- float4 PShader(PS_INPUT In) : COLOR
- {
- float4 clr=0.8f*texCUBE(sampCube,In.Tex1)+0.4f*tex2D(sampTex,In.Tex0); //float4(0.6f,0.14f,0.34f,0);
- clr*=In.Clr;
- clr.a=In.Clr.a;
- //clr.xyz+=In.FogClr;
- return clr;
- }
-